package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 患者信息对象 patient
 * 
 * @author 墨白
 * @date 2024-08-10
 */
public class Patient extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 患者ID */
    @Excel(name = "患者ID")
    private Long patientId;

    /** 患者姓名 */
    @Excel(name = "患者姓名")
    private String patientName;

    /** 性别 */
    @Excel(name = "性别")
    private String gender;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dateOfBirth;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private Long number;

    /** 地址 */
    @Excel(name = "地址")
    private String address;

    /** 病史 */
    @Excel(name = "病史")
    private String history;

    /** 诊断方法 */
    @Excel(name = "诊断方法")
    private String treatment;

    public void setPatientId(Long patientId) 
    {
        this.patientId = patientId;
    }

    public Long getPatientId() 
    {
        return patientId;
    }
    public void setPatientName(String patientName) 
    {
        this.patientName = patientName;
    }

    public String getPatientName() 
    {
        return patientName;
    }
    public void setGender(String gender) 
    {
        this.gender = gender;
    }

    public String getGender() 
    {
        return gender;
    }
    public void setDateOfBirth(Date dateOfBirth) 
    {
        this.dateOfBirth = dateOfBirth;
    }

    public Date getDateOfBirth() 
    {
        return dateOfBirth;
    }
    public void setNumber(Long number) 
    {
        this.number = number;
    }

    public Long getNumber() 
    {
        return number;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setHistory(String history) 
    {
        this.history = history;
    }

    public String getHistory() 
    {
        return history;
    }
    public void setTreatment(String treatment) 
    {
        this.treatment = treatment;
    }

    public String getTreatment() 
    {
        return treatment;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("patientId", getPatientId())
            .append("patientName", getPatientName())
            .append("gender", getGender())
            .append("dateOfBirth", getDateOfBirth())
            .append("number", getNumber())
            .append("address", getAddress())
            .append("history", getHistory())
            .append("treatment", getTreatment())
            .toString();
    }
}
